package com.specdot.kraster.gui;

import java.awt.Color;
import java.awt.Graphics;

import com.specdot.kraster.core.Screen;

public class GraphicsScreen extends Screen {
	private Graphics graphics;
	
	public GraphicsScreen(int height, int width, Graphics graphics) {
		super(height, width);
		this.graphics = graphics;
	}

	@Override
	public void putPixel(int x, int y, float r, float g, float b, float a) {
		graphics.setColor(new Color(r, g, b));
		
		graphics.drawLine(x, y, x, y);
	}
}
